<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: Time</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__time.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Time<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Timestamping operations for measuring the timing of CPU code.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga741cdb5863f122d3e527c8b53e0cb3c3">timestamp</a> (timespec *timestampOut)</td></tr>
<tr class="memdesc:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a timestamp of the current system time.  <a href="group__time.html#ga741cdb5863f122d3e527c8b53e0cb3c3">More...</a><br /></td></tr>
<tr class="separator:ga741cdb5863f122d3e527c8b53e0cb3c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43627a5af271e9abfd46b467d2e309a8"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a> ()</td></tr>
<tr class="memdesc:ga43627a5af271e9abfd46b467d2e309a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a timestamp of the current system time.  <a href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">More...</a><br /></td></tr>
<tr class="separator:ga43627a5af271e9abfd46b467d2e309a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaf3c8f1da6d7ab35e2aba66796bff9b7d">timeZero</a> ()</td></tr>
<tr class="memdesc:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a blank timespec that's been zero'd.  <a href="group__time.html#gaf3c8f1da6d7ab35e2aba66796bff9b7d">More...</a><br /></td></tr>
<tr class="separator:gaf3c8f1da6d7ab35e2aba66796bff9b7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaccb3fcd271afec70d82b9914834a3936"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaccb3fcd271afec70d82b9914834a3936">timeNew</a> (time_t seconds, long int nanoseconds)</td></tr>
<tr class="memdesc:gaccb3fcd271afec70d82b9914834a3936"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an initialized <code>timespec</code>  <a href="group__time.html#gaccb3fcd271afec70d82b9914834a3936">More...</a><br /></td></tr>
<tr class="separator:gaccb3fcd271afec70d82b9914834a3936"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga99ec3a2bb4cf3de4f7e9a9ccc600255e">timeNew</a> (long int nanoseconds)</td></tr>
<tr class="memdesc:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return an initialized <code>timespec</code>  <a href="group__time.html#ga99ec3a2bb4cf3de4f7e9a9ccc600255e">More...</a><br /></td></tr>
<tr class="separator:ga99ec3a2bb4cf3de4f7e9a9ccc600255e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf087d50741339d18a1c4101985b30a8a"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaf087d50741339d18a1c4101985b30a8a">timeAdd</a> (const timespec &amp;a, const timespec &amp;b)</td></tr>
<tr class="memdesc:gaf087d50741339d18a1c4101985b30a8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add two times together.  <a href="group__time.html#gaf087d50741339d18a1c4101985b30a8a">More...</a><br /></td></tr>
<tr class="separator:gaf087d50741339d18a1c4101985b30a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga3c4b729b99d06b423956e7a3a17aaeb4">timeDiff</a> (const timespec &amp;start, const timespec &amp;end, timespec *result)</td></tr>
<tr class="memdesc:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the difference between two timestamps.  <a href="group__time.html#ga3c4b729b99d06b423956e7a3a17aaeb4">More...</a><br /></td></tr>
<tr class="separator:ga3c4b729b99d06b423956e7a3a17aaeb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa07ea1ff9097095950d78066456cd703"><td class="memItemLeft" align="right" valign="top">timespec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaa07ea1ff9097095950d78066456cd703">timeDiff</a> (const timespec &amp;start, const timespec &amp;end)</td></tr>
<tr class="memdesc:gaa07ea1ff9097095950d78066456cd703"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find the difference between two timestamps.  <a href="group__time.html#gaa07ea1ff9097095950d78066456cd703">More...</a><br /></td></tr>
<tr class="separator:gaa07ea1ff9097095950d78066456cd703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga86c3f22b9c909bb11014c38634c29778"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga86c3f22b9c909bb11014c38634c29778">timeCmp</a> (const timespec &amp;a, const timespec &amp;b)</td></tr>
<tr class="memdesc:ga86c3f22b9c909bb11014c38634c29778"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare two timestamps.  <a href="group__time.html#ga86c3f22b9c909bb11014c38634c29778">More...</a><br /></td></tr>
<tr class="separator:ga86c3f22b9c909bb11014c38634c29778"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0b5e8df896fa6809012901fe9254fa1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gae0b5e8df896fa6809012901fe9254fa1">apptime</a> (timespec *a)</td></tr>
<tr class="memdesc:gae0b5e8df896fa6809012901fe9254fa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the elapsed time since the process started.  <a href="group__time.html#gae0b5e8df896fa6809012901fe9254fa1">More...</a><br /></td></tr>
<tr class="separator:gae0b5e8df896fa6809012901fe9254fa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0671b9aa950ae00b1c3fbde3b0e64abc"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga0671b9aa950ae00b1c3fbde3b0e64abc">apptime_nano</a> ()</td></tr>
<tr class="memdesc:ga0671b9aa950ae00b1c3fbde3b0e64abc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the elapsed time since the process started (in nanoseconds).  <a href="group__time.html#ga0671b9aa950ae00b1c3fbde3b0e64abc">More...</a><br /></td></tr>
<tr class="separator:ga0671b9aa950ae00b1c3fbde3b0e64abc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga379d019a518e124625ccc778424ac0ed"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga379d019a518e124625ccc778424ac0ed">apptime</a> ()</td></tr>
<tr class="memdesc:ga379d019a518e124625ccc778424ac0ed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the elapsed time since the process started (in seconds).  <a href="group__time.html#ga379d019a518e124625ccc778424ac0ed">More...</a><br /></td></tr>
<tr class="separator:ga379d019a518e124625ccc778424ac0ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga762b4a9f55b4fb1a50d459cc7c384b92">timeFloat</a> (const timespec &amp;a)</td></tr>
<tr class="memdesc:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert to 32-bit float (in milliseconds).  <a href="group__time.html#ga762b4a9f55b4fb1a50d459cc7c384b92">More...</a><br /></td></tr>
<tr class="separator:ga762b4a9f55b4fb1a50d459cc7c384b92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaffbef3ffb8eb4bbf71051a3fd7dcb882"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gaffbef3ffb8eb4bbf71051a3fd7dcb882">timeDouble</a> (const timespec &amp;a)</td></tr>
<tr class="memdesc:gaffbef3ffb8eb4bbf71051a3fd7dcb882"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert to 64-bit double (in milliseconds).  <a href="group__time.html#gaffbef3ffb8eb4bbf71051a3fd7dcb882">More...</a><br /></td></tr>
<tr class="separator:gaffbef3ffb8eb4bbf71051a3fd7dcb882"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga58e597d9101a632df1b5ad9e8cf367f8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga58e597d9101a632df1b5ad9e8cf367f8">timeDouble</a> ()</td></tr>
<tr class="memdesc:ga58e597d9101a632df1b5ad9e8cf367f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get current timestamp as 64-bit double (in milliseconds).  <a href="group__time.html#ga58e597d9101a632df1b5ad9e8cf367f8">More...</a><br /></td></tr>
<tr class="separator:ga58e597d9101a632df1b5ad9e8cf367f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab04eb4210d4a3f76a0502234c783c61e"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gab04eb4210d4a3f76a0502234c783c61e">timeStr</a> (const timespec &amp;<a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a>, char *strOut)</td></tr>
<tr class="memdesc:gab04eb4210d4a3f76a0502234c783c61e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Produce a text representation of the timestamp.  <a href="group__time.html#gab04eb4210d4a3f76a0502234c783c61e">More...</a><br /></td></tr>
<tr class="separator:gab04eb4210d4a3f76a0502234c783c61e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga10a0bd8b7e29af965bb1fa4de9153a52">timePrint</a> (const timespec &amp;<a class="el" href="group__time.html#ga43627a5af271e9abfd46b467d2e309a8">timestamp</a>, const char *text=NULL)</td></tr>
<tr class="memdesc:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the time to stdout.  <a href="group__time.html#ga10a0bd8b7e29af965bb1fa4de9153a52">More...</a><br /></td></tr>
<tr class="separator:ga10a0bd8b7e29af965bb1fa4de9153a52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga54b6c83056c1f1324bcbc2dab776b273"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga54b6c83056c1f1324bcbc2dab776b273">sleepTime</a> (const timespec &amp;duration)</td></tr>
<tr class="memdesc:ga54b6c83056c1f1324bcbc2dab776b273"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified time.  <a href="group__time.html#ga54b6c83056c1f1324bcbc2dab776b273">More...</a><br /></td></tr>
<tr class="separator:ga54b6c83056c1f1324bcbc2dab776b273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43f8222b603f11d862375e2bc1923b0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga43f8222b603f11d862375e2bc1923b0d">sleepTime</a> (time_t seconds, long int nanoseconds)</td></tr>
<tr class="memdesc:ga43f8222b603f11d862375e2bc1923b0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified time.  <a href="group__time.html#ga43f8222b603f11d862375e2bc1923b0d">More...</a><br /></td></tr>
<tr class="separator:ga43f8222b603f11d862375e2bc1923b0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadc10da23418dffce632d3bd16000bc5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gadc10da23418dffce632d3bd16000bc5a">sleepMs</a> (uint64_t milliseconds)</td></tr>
<tr class="memdesc:gadc10da23418dffce632d3bd16000bc5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of milliseconds.  <a href="group__time.html#gadc10da23418dffce632d3bd16000bc5a">More...</a><br /></td></tr>
<tr class="separator:gadc10da23418dffce632d3bd16000bc5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5b8575ba34c76a27111d26ebac8d347a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#ga5b8575ba34c76a27111d26ebac8d347a">sleepUs</a> (uint64_t microseconds)</td></tr>
<tr class="memdesc:ga5b8575ba34c76a27111d26ebac8d347a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of microseconds.  <a href="group__time.html#ga5b8575ba34c76a27111d26ebac8d347a">More...</a><br /></td></tr>
<tr class="separator:ga5b8575ba34c76a27111d26ebac8d347a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gade2df9f88a694448445740eca02343b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__time.html#gade2df9f88a694448445740eca02343b9">sleepNs</a> (uint64_t nanoseconds)</td></tr>
<tr class="memdesc:gade2df9f88a694448445740eca02343b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Put the current thread to sleep for a specified number of nanoseconds.  <a href="group__time.html#gade2df9f88a694448445740eca02343b9">More...</a><br /></td></tr>
<tr class="separator:gade2df9f88a694448445740eca02343b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Timestamping operations for measuring the timing of CPU code. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga379d019a518e124625ccc778424ac0ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga379d019a518e124625ccc778424ac0ed">&#9670;&nbsp;</a></span>apptime() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float apptime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve the elapsed time since the process started (in seconds). </p>

</div>
</div>
<a id="gae0b5e8df896fa6809012901fe9254fa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae0b5e8df896fa6809012901fe9254fa1">&#9670;&nbsp;</a></span>apptime() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void apptime </td>
          <td>(</td>
          <td class="paramtype">timespec *&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve the elapsed time since the process started. </p>

</div>
</div>
<a id="ga0671b9aa950ae00b1c3fbde3b0e64abc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0671b9aa950ae00b1c3fbde3b0e64abc">&#9670;&nbsp;</a></span>apptime_nano()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t apptime_nano </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve the elapsed time since the process started (in nanoseconds). </p>

</div>
</div>
<a id="gadc10da23418dffce632d3bd16000bc5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadc10da23418dffce632d3bd16000bc5a">&#9670;&nbsp;</a></span>sleepMs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sleepMs </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>milliseconds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put the current thread to sleep for a specified number of milliseconds. </p>

</div>
</div>
<a id="gade2df9f88a694448445740eca02343b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gade2df9f88a694448445740eca02343b9">&#9670;&nbsp;</a></span>sleepNs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sleepNs </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>nanoseconds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put the current thread to sleep for a specified number of nanoseconds. </p>

</div>
</div>
<a id="ga54b6c83056c1f1324bcbc2dab776b273"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54b6c83056c1f1324bcbc2dab776b273">&#9670;&nbsp;</a></span>sleepTime() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sleepTime </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>duration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put the current thread to sleep for a specified time. </p>

</div>
</div>
<a id="ga43f8222b603f11d862375e2bc1923b0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga43f8222b603f11d862375e2bc1923b0d">&#9670;&nbsp;</a></span>sleepTime() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sleepTime </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>seconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long int&#160;</td>
          <td class="paramname"><em>nanoseconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put the current thread to sleep for a specified time. </p>

</div>
</div>
<a id="ga5b8575ba34c76a27111d26ebac8d347a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5b8575ba34c76a27111d26ebac8d347a">&#9670;&nbsp;</a></span>sleepUs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void sleepUs </td>
          <td>(</td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>microseconds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Put the current thread to sleep for a specified number of microseconds. </p>

</div>
</div>
<a id="gaf087d50741339d18a1c4101985b30a8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf087d50741339d18a1c4101985b30a8a">&#9670;&nbsp;</a></span>timeAdd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timeAdd </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add two times together. </p>

</div>
</div>
<a id="ga86c3f22b9c909bb11014c38634c29778"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga86c3f22b9c909bb11014c38634c29778">&#9670;&nbsp;</a></span>timeCmp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int timeCmp </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Compare two timestamps. </p>
<dl class="section return"><dt>Returns</dt><dd>0, if timestamp A equals timestamp B &gt;0, if timestamp A is greater than timestamp B &lt;0, if timestamp A is less than timestamp B </dd></dl>

</div>
</div>
<a id="gaa07ea1ff9097095950d78066456cd703"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa07ea1ff9097095950d78066456cd703">&#9670;&nbsp;</a></span>timeDiff() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timeDiff </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find the difference between two timestamps. </p>

</div>
</div>
<a id="ga3c4b729b99d06b423956e7a3a17aaeb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3c4b729b99d06b423956e7a3a17aaeb4">&#9670;&nbsp;</a></span>timeDiff() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void timeDiff </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">timespec *&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Find the difference between two timestamps. </p>

</div>
</div>
<a id="ga58e597d9101a632df1b5ad9e8cf367f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga58e597d9101a632df1b5ad9e8cf367f8">&#9670;&nbsp;</a></span>timeDouble() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double timeDouble </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get current timestamp as 64-bit double (in milliseconds). </p>

</div>
</div>
<a id="gaffbef3ffb8eb4bbf71051a3fd7dcb882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaffbef3ffb8eb4bbf71051a3fd7dcb882">&#9670;&nbsp;</a></span>timeDouble() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double timeDouble </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert to 64-bit double (in milliseconds). </p>

</div>
</div>
<a id="ga762b4a9f55b4fb1a50d459cc7c384b92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga762b4a9f55b4fb1a50d459cc7c384b92">&#9670;&nbsp;</a></span>timeFloat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float timeFloat </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert to 32-bit float (in milliseconds). </p>

</div>
</div>
<a id="ga99ec3a2bb4cf3de4f7e9a9ccc600255e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga99ec3a2bb4cf3de4f7e9a9ccc600255e">&#9670;&nbsp;</a></span>timeNew() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timeNew </td>
          <td>(</td>
          <td class="paramtype">long int&#160;</td>
          <td class="paramname"><em>nanoseconds</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return an initialized <code>timespec</code> </p>

</div>
</div>
<a id="gaccb3fcd271afec70d82b9914834a3936"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaccb3fcd271afec70d82b9914834a3936">&#9670;&nbsp;</a></span>timeNew() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timeNew </td>
          <td>(</td>
          <td class="paramtype">time_t&#160;</td>
          <td class="paramname"><em>seconds</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long int&#160;</td>
          <td class="paramname"><em>nanoseconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return an initialized <code>timespec</code> </p>

</div>
</div>
<a id="ga10a0bd8b7e29af965bb1fa4de9153a52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga10a0bd8b7e29af965bb1fa4de9153a52">&#9670;&nbsp;</a></span>timePrint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void timePrint </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>timestamp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Print the time to stdout. </p>

</div>
</div>
<a id="ga43627a5af271e9abfd46b467d2e309a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga43627a5af271e9abfd46b467d2e309a8">&#9670;&nbsp;</a></span>timestamp() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timestamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve a timestamp of the current system time. </p>

</div>
</div>
<a id="ga741cdb5863f122d3e527c8b53e0cb3c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga741cdb5863f122d3e527c8b53e0cb3c3">&#9670;&nbsp;</a></span>timestamp() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void timestamp </td>
          <td>(</td>
          <td class="paramtype">timespec *&#160;</td>
          <td class="paramname"><em>timestampOut</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve a timestamp of the current system time. </p>

</div>
</div>
<a id="gab04eb4210d4a3f76a0502234c783c61e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab04eb4210d4a3f76a0502234c783c61e">&#9670;&nbsp;</a></span>timeStr()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">char* timeStr </td>
          <td>(</td>
          <td class="paramtype">const timespec &amp;&#160;</td>
          <td class="paramname"><em>timestamp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>strOut</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Produce a text representation of the timestamp. </p>

</div>
</div>
<a id="gaf3c8f1da6d7ab35e2aba66796bff9b7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3c8f1da6d7ab35e2aba66796bff9b7d">&#9670;&nbsp;</a></span>timeZero()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">timespec timeZero </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return a blank timespec that's been zero'd. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Tue Mar 28 2023 14:27:58 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
